<?php TPL::output('global/header_landing.tpl.htm'); ?>

<script type="text/javascript">
	$(document).ready(function () {
		$('#header_action').append('第三方登录');
	});
</script>

<div class="Ef_login login_bg_02">

<h3>已有账号？ <a href="javascript:;" onclick="$.wb_Logins(this)">点此绑定<em class="a i_small"></em></a></h3>
<form id="login_form" method="post" onsubmit="return false" action="account/ajax/login_process/">
<input type="hidden" name="post_hash" value="<?php echo new_post_hash(); ?>" />
<input type="hidden" name="return_url" id="login_return_url" value="" />
  <ul class="loging i_hide" id="weibo_bind">
    <li>
      <input tabindex="0" type="text" tabindex="0" class="login_txt" name="user_name" id="login_userName" title="邮箱/用户名" value="邮箱/用户名"/>
    </li>
    <li>
      <input type="text" class="login_txt" id="login_password_txt" title="密码" value="密码"/>
      <input type="password" name="password" class="login_txt i_hide" id="login_password" title="密码" tabindex="1"/>
    </li>
    <li id="bingglobal_err" class="i_hide">
      <p class="i_global_err i_small i_err_bg"><em class="e"></em><span id="bingglo_Err">账号或密码错误，请重试</span></p>
    </li>
    <li><a href="javascript:;" class="login_sub i_cl_06 i_fb_14 i_right" title="绑定微博" onClick="$.login.loginSubmit(function () { ajax_post($('#login_form')); });">绑定微博</a></li>
  </ul>
</form>
  
  <form action="" method="post" id="register_form">
  <ul class="loging register" id="login_weibo">
    <li>
      <input name="user_name" type="text" class="login_txt" title="用户名" value="<?php echo $_GET['user_name'];?>"/>
    </li>
    <li>
      <?php if ($_GET['email']) { ?><input type="hidden" id="userEmail" /><?php } ?>
      <input name="email" type="text" class="login_txt" tabindex="0" id="login_account" title="账号（邮箱）" value="<?php echo $_GET['email']; ?>"/>
    </li>
    <li>
      <input type="text" class="login_txt" id="weibo_password_txt" title="密码" value="密码"/>
      <input type="password" name="password" class="login_txt i_hide" id="weibo_password" title="密码" tabindex="1"/>
    </li>
    <li<?php if ($this->fromuid || $this->icode || (get_setting('register_seccode') == 'N')) { ?> style="display:none;"<?php } ?>>
      <input type="text" class="login_txt auth_code" id="authCode" name="seccode_verify" title="验证码" value="验证码" tabindex="2" />
      <em class="auth_img"><img src="" onclick="this.src = G_BASE_URL + '/account/captcha/rnd-' + Math.floor(Math.random() * 10000);" id="seccode" /></em> <span class="hide"></span> </li>
    <li id="global_err" class="i_hide">
      <p class="i_global_err  i_small i_err_bg"><em class="e"></em><span id="glo_Err">账号或密码错误，请重试</span></p>
    </li>
    <li class="user_treaty">
       <input type="checkbox" name="agreement_chk" value="agree" id="user_agreement"/>
      &nbsp;&nbsp;
      <label for="user_agreement">我同意《<a href="javascript:;" onClick="$.register.s.EveClick();">用户协议</a>》中的条款</label>
      <div class="user_treaty_txt reg_treaty_bg i_prl i_hide" id="user_agre"><span class="reg_arrows i_pas i_small"></span><div class="txt" id="register_agreement">正在载入...</div></div>
    </li>
    <li><a href="javascript:;" class="login_sub i_cl_06 i_fb_14 i_right" tabindex="3" onClick="$.register.s.callback(function () { ajax_post($('#register_form'), _login_form_processer); });" >确认注册</a></li>
  </ul>
  </form>
</div>

<script type="text/javascript" src="<?php echo G_STATIC_URL; ?>/js/app/login.js"></script>
<script type="text/javascript">
	$(document).ready(function () {
		$('#login_return_url').val(window.location.href);
		
		$.get(G_BASE_URL + '/account/ajax/register_agreement/', function (result) { $('#register_agreement').html(result.err); }, 'json');
		
		if (document.getElementById('seccode'))
		{
			$('#seccode').click();
		}
	});
</script>

<?php TPL::output('global/footer_blank.tpl.htm'); ?>